package com.newland.boss1.zxy;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author : zhangxuyuan
 * @Project: springcloudhuaweisample
 * @Package com.newland.boss1.zxy
 * @date Date : 2021年02月19日 14:50
 */
@RefreshScope
@RestController
public class ConfigController {

    @Value("${aaa.zzz}")
    private String configTest;

    @GetMapping("/configtest")
    public String getConfigTest()
    {
        return configTest;
    }

}
